import { mapGetters } from 'vuex'
export default{
  computed:{
        ...mapGetters('myCart',['total'])
      },
      onShow() {
        this.getTage()
      },
      watch:{
        total(){
          this.getTage()
        }
      },
      methods:{
        getTage(){
          uni.setTabBarBadge({
            index:2,
             text:this.total+''
          })
        }
      }
}
